tests: Add testdatatable
authorIvan Molodetskikh <yalterz@gmail.com>
Wed, 29 Jun 2022 04:46:21 +0000 (21:46 -0700)
committerIvan Molodetskikh <yalterz@gmail.com>
Wed, 29 Jun 2022 04:52:49 +0000 (21:52 -0700)
commit53f3b4b9d9488dedfaf46567da9234df0b1343fa
tree189d24d73cf1e6cafe76ce67865ffdaf87861617
parent5bb4d69720dfe44fb79667af23560d8e7ba61337
tests: Add testdatatable

Add a GtkColumnView scrolling performance test similar to the one used
previously in https://gitlab.gnome.org/GNOME/gtk/-/issues/3334.

The test creates a table with 20 columns and 10,000 rows and scrolls it
to a random position every frame, while measuring the frame times.

There is a commandline flag to pick the cell widget between none (for
benchmarking raw column view scrolling) and various label types. There
is also a commandline switch to disable automatic scrolling in case a
manual assessment is desired. Finally, there's an argument for
controlling the number of columns.
tests/meson.build
tests/testdatatable.c [new file with mode: 0644]